import Vue from 'vue';
import Router from 'vue-router';


Vue.use(Router);

const router = new Router({
    routes: [
        {
            path: '/',
            redirect: '/login' // 设置重定向
        },
        {
            path: '/login',
            name: 'login',
            component: () => import( '../views/LoginView.vue')
        },
        {
            path: '/company-management',
            name: 'company-management',
            component: () => import( '../views/CompanyManagement.vue')
        },
        {
            path: '/job-search',
            name: 'job-search',
            component: () => import( '../views/JobSearch.vue')
        },
        {
            path: '/forum-view',
            name: 'forum-view',
            component: () => import( '../views/ForumView.vue')
        },
        {path: '/job-list',
            name: 'job-list',
            component: () => import( '../views/JobList.vue')
        },
        {
            path: '/game',
            name: 'game',
            component: () => import( '../views/JobList/游戏/game.vue')
        },
        {
            path: '/game1',
            name: 'game1',
            component: () => import( '../views/JobList/游戏/game1.vue')
        },
        {
            path: '/game2',
            name: 'game2',
            component: () => import( '../views/JobList/游戏/game2.vue')
        },
        {
            path: '/game3',
            name: 'game3',
            component: () => import( '../views/JobList/游戏/game3.vue')
        },
        {
            path: '/game4',
            name: 'game4',
            component: () => import( '../views/JobList/游戏/game4.vue')
        },
        {
            path: '/game5',
            name: 'game5',
            component: () => import( '../views/JobList/游戏/game5.vue')
        },
        {
            path: '/media',
            name: 'media',
            component: () => import( '../views/JobList/传媒/media.vue')
        },
        {
            path: '/media1',
            name: 'media1',
            component: () => import( '../views/JobList/传媒/media1.vue')
        },
        {
            path: '/media2',
            name: 'media2',
            component: () => import( '../views/JobList/传媒/media2.vue')
        },
        {
            path: '/media3',
            name: 'media3',
            component: () => import( '../views/JobList/传媒/media3.vue')
        },
        {
            path: '/media4',
            name: 'media4',
            component: () => import( '../views/JobList/传媒/media4.vue')
        },
        {
            path: '/media5',
            name: 'media5',
            component: () => import( '../views/JobList/传媒/media5.vue')
        },
        {
            path: '/car',
            name: 'car',
            component: () => import( '../views/JobList/汽车/car.vue')
        },
        {
            path: '/car1',
            name: 'car1',
            component: () => import( '../views/JobList/汽车/car1.vue')
        },
        {
            path: '/car2',
            name: 'car2',
            component: () => import( '../views/JobList/汽车/car2.vue')
        },
        {
            path: '/car3',
            name: 'car3',
            component: () => import( '../views/JobList/汽车/car3.vue')
        },
        {
            path: '/car4',
            name: 'car4',
            component: () => import( '../views/JobList/汽车/car4.vue')
        },
        {
            path: '/catering',
            name: 'catering',
            component: () => import( '../views/JobList/餐饮/catering.vue')
        },
        {
            path: '/catering1',
            name: 'catering1',
            component: () => import( '../views/JobList/餐饮/catering1.vue')
        },
        {
            path: '/catering2',
            name: 'catering2',
            component: () => import( '../views/JobList/餐饮/catering2.vue')
        },
        {
            path: '/catering3',
            name: 'catering3',
            component: () => import( '../views/JobList/餐饮/catering3.vue')
        },
        {
            path: '/catering4',
            name: 'catering4',
            component: () => import( '../views/JobList/餐饮/catering4.vue')
        },
        {
            path: '/internet',
            name: 'internet',
            component: () => import( '../views/JobList/互联网/internet.vue')
        },
        {
            path: '/internet1',
            name: 'internet1',
            component: () => import( '../views/JobList/互联网/internet1.vue')
        },
        {
            path: '/internet2',
            name: 'internet2',
            component: () => import( '../views/JobList/互联网/internet2.vue')
        },
        {
            path: '/internet3',
            name: 'internet3',
            component: () => import( '../views/JobList/互联网/internet3.vue')
        },
        {
            path: '/internet4',
            name: 'internet4',
            component: () => import( '../views/JobList/互联网/internet4.vue')
        },
        {
            path: '/internet5',
            name: 'internet5',
            component: () => import( '../views/JobList/互联网/internet5.vue')
        },
        {
            path: '/medical',
            name: 'medical',
            component: () => import( '../views/JobList/医疗/medical.vue')
        },
        {
            path: '/medical1',
            name: 'medical1',
            component: () => import( '../views/JobList/医疗/medical1.vue')
        },
        {
            path: '/medical2',
            name: 'medical2',
            component: () => import( '../views/JobList/医疗/medical2.vue')
        },
        {
            path: '/medical3',
            name: 'medical3',
            component: () => import( '../views/JobList/医疗/medical3.vue')
        },
        {
            path: '/medical4',
            name: 'medical4',
            component: () => import( '../views/JobList/医疗/medical4.vue')
        },
        {
            path: '/personal-info',
            name: 'personal-info',
            component: () => import( '../views/personal-info.vue')
        },

        {
            path: '/job-details',
            name: 'job-details',
            component: () => import( '../views/job-details.vue')
        },
        {
            path: '/add-job',
            name: 'add-job',
            component: () => import( '../views/AddJob.vue')
        },
        {
            path: '/edit-job',
            name: 'edit-job',
            component: () => import( '../views/EditJob.vue')
        },
        {
            path: '/edit-job/:index',
            name: 'edit-job',
            component: () => import( '../views/EditJob.vue')
        },
        {
            path: 'searchResults',
            name: 'searchResults',
            component: () => import( '../views/searchResults.vue')
        }
    ]
});


export default router
